package com.test.design_pattern.factory.abstract_fac;

/**
 * 现代工厂  生产现代的吃 行  武器
 * @author : zhangwei
 * @date : 2020-07-18
 **/
public class ModernFactory extends AbFactory {
    @Override
    Food createFood() {
        return new Bread();
    }

    @Override
    Vehicle createVehicle() {
        return new Car();
    }

    @Override
    Weapon createWeapon() {
        return new Ak47();
    }
}
